package com.ruoyi.blindBoxManage.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.math.BigDecimal;
import java.util.List;

/**
 * 盲盒箱子配置对象 t_box
 *
 * @author ruoyi
 * @date 2025-08-12
 */
@Data
public class Box extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 盲盒
     */
    private Long blindBoxId;

    @Transient
    //箱数
    private Integer boxCount;
    @Excel(name = "盲盒")
    private String blindBoxName;
    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 封面图
     */
    private String picture;

    /**
     * 一番赏抱箱最低冲数
     */
    @Excel(name = "一番赏抱箱最低冲数")
    private Integer minCount;

    /**
     * 抱箱等待时间（单位：秒）
     */
    @Excel(name = "抱箱等待时间", readConverterExp = "单=位：秒")
    private Integer waitTime;

    /**
     * 区间赏瓜分名次
     */
    @Excel(name = "区间赏瓜分名次")
    private Integer partitionRank;

    /**
     * 区间赏瓜分积分
     */
    @Excel(name = "区间赏瓜分积分")
    private BigDecimal partitionPoints;

    @Transient
    private List<Long> products;

    /**
     * 箱子状态
     */
    @Excel(name = "箱子状态")
    private Integer status;

    @Excel(name = "是否解锁（0=未解锁）")
    private Integer isUnlock;


    private Integer isDelete;
}
